# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-alien-build-plugin-download-gitlab
pkgver=0.01
pkgrel=1
pkgdesc="Alien::Build plugin to download from GitLab"
arch=('any')
license=('PerlArtistic')
url="https://metacpan.org/release/Alien-Build-Plugin-Download-GitLab"
depends=('perl-alien-build' 'perl-path-tiny' 'perl-uri')
makedepends=('perl-test2-suite')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Build-Plugin-Download-GitLab-$pkgver.tar.gz")
sha512sums=('5a1a1dcefbec09732e377c47a961d57cc21a54fef154158dbad1738a93a143348ddc69430b35207d9db111a74592a7120b2abf2f7045818a74a6397bbf07fb06')

build() {
  cd Alien-Build-Plugin-Download-GitLab-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Alien-Build-Plugin-Download-GitLab-$pkgver
  make test
}

package() {
  cd Alien-Build-Plugin-Download-GitLab-$pkgver
  make DESTDIR="$pkgdir" install
}
